package log

import (
	"log"
)

// SlowLogger 初始化日志配置
func SlowLogger() {
	file := NewFile("slow")
	log.SetOutput(file)
	log.SetFlags(log.Llongfile | log.Lmicroseconds | log.Ldate)
}

// SlowPrefixLogger 带前缀日志
func SlowPrefixLogger(msg string, prefix string) {
	log.SetPrefix("[ " + prefix + " ] ")
	log.Println(msg)
}
